import LayoutBase from '@/page/layout/base'
import SliderProduct from '@/page/layout/slider/product'
export default [
  {
    path: '/product',
    component: LayoutBase,
    children:[
      {
        path: '/pro',
        component: SliderProduct,
        children: [
          {
            path: '/product/list',
            name: 'product',
            component: () => import(/* webpackChunkName: "product" */'@/views/product/'),
            meta: { title: '产品' }
          },
          {
            path: '/product/list/:id',
            name: 'productList',
            component: () => import(/* webpackChunkName: "productList" */'@/views/product/'),
            meta: { title: '产品' }
          },
          {
            path: '/product/list/mine/:id',
            name: 'indexMine',
            component: () => import(/* webpackChunkName: "productList" */'@/views/product/indexMine'),
            meta: { title: '产品' }
          },
          {
            path: '/product/edit/:id',
            name: 'detail',
            component: () => import(/* webpackChunkName: "detail" */'@/views/product/detail'),
            meta: { title: '产品' }
          },
          {
            path: '/product/add',
            name: 'detail',
            component: () => import(/* webpackChunkName: "detail" */'@/views/product/detail'),
            meta: { title: '产品' }
          },
          {
            path: '/product/set/',
            name: 'set',
            component: () => import(/* webpackChunkName: "set" */'@/views/product/set/index'),
            meta: { title: '产品管理设置' }
          },
          {
            path: '/product/set/detail/:id',
            name: 'setdetail',
            component: () => import(/* webpackChunkName: "setdetail" */'@/views/product/set/importDetail'),
            meta: { title: '产品管理设置' }
          },
          {
            path: '/set/product/template/add',
            name: 'add',
            component: () => import(/* webpackChunkName: "add" */'@/views/product/set/template/productDetail'),
            meta: {title: '产品管理设置-新增产品模板'}
          },
          {
            path: '/set/product/template/edit/:id',
            name: 'edit',
            component: () => import(/* webpackChunkName: "productEdit" */'@/views/product/set/template/productDetail'),
            meta: {title: '产品管理设置-编辑产品模板'}
          },
        ]
      }
    ],
  }
]
